home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
pc
/
LOGIC Apple II 5.25" Library - DOS Part 2
/
DOS038.dsk
/
CREATE CHARGEX.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
971b
|
38 lines
100 REM CREATE CHARGEX
150 HOME : PRINT "TYPE IN STOP WHEN FINISHED ENTERING DATA."
160 POKE 34,2
200 DIM NAMES$(2000)
205 DIM TITLES$(8)
206 GOSUB 1300
210 FOR CI = 1 TO 2000
212 FOR CP = 0 TO 7
214 PRINT TITLES$(CP +1)
216 INPUT NAMES$(CI +CP)
218 PRINT CI +CP: PRINT
220 IF LEFT$(NAMES$(CI +CP),4) = "STOP" THEN 400
230 NEXT CP
240 CI = CI +7
290 NEXT CI
300 PRINT " "
400 INPUT "GIVE YOUR FILE A NAME ";A$
450 D$ = CHR$(4): REM CTRL-D
500 PRINT D$;"OPEN";A$
600 PRINT D$;"DELETE";A$
700 PRINT D$;"OPEN";A$
800 PRINT D$;"WRITE";A$
900 CJ = (CI -1)
1000 FOR CK = 1 TO CJ
1100 PRINT NAMES$(CK)
1200 NEXT CK
1250 GOTO 20000
1300 TITLES$(1) = "DAY OF MONTH"
1400 TITLES$(2) = "MONTH"
1500 TITLES$(3) = "YEAR"
1600 TITLES$(4) = "CODE NUMBER"
1700 TITLES$(5) = "DESCRIPTION"
1800 TITLES$(6) = "DEBIT"
1900 TITLES$(7) = "CREDIT"
2000 TITLES$(8) = "COMMENT"
2100 RETURN
20000 PRINT D$;"CLOSE";A$
21000 PRINT "THE NUMBER OF FILES ";(CK -1)